package com.aidex.system.service.impl;

import com.aidex.common.core.service.impl.BasicServiceImpl;
import com.aidex.common.utils.NumberUtils;
import com.aidex.system.domain.SysCommonUseMenu;
import com.aidex.system.mapper.SysCommonUseMenuMapper;
import com.aidex.system.service.SysCommonUseMenuService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class SysCommonUseMenuServiceImpl extends BasicServiceImpl<SysCommonUseMenuMapper, SysCommonUseMenu> implements SysCommonUseMenuService {

    public int findMaxSort(String userId) {
        return NumberUtils.nextOrder(mapper.findMaxSort(userId));
    }
}
